package com.star.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.star.dao.MessageDao;
import com.star.model.MessageModel;
import com.star.service.MessageService;

@Service
public class MessageServiceImpl implements MessageService{
	
	@Autowired
	private MessageDao messageDao;

	@Override
	public void insertMessage(MessageModel model) {
		messageDao.insertMessage(model);
	}

	@Override
	public List<MessageModel> queryMessageModel(Integer newsId) {
		return messageDao.queryMessageModel(newsId);
	}

}
